/*
 * @Descripttion: 淘宝订单系统
 * @version: 2.0
 * @Author: kiming<shufan209@qq.com>
 * @Date: 2020-10-08 22:31:53
 * @LastEditors: kiming<shufan209@qq.com>
 * @LastEditTime: 2022-06-04 16:20:01
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
//import store from "./store";
import config from './config';
Vue.config.productionTip = false;
Vue.prototype.$config = config;



router.beforeEach((to, from, next) => {
  window.document.title = to.meta.title == undefined ? '默认标题' : to.meta.title
  /* if (to.meta.requireAuth) {
       let token = Cookies.get('access_token');
       let anonymous = Cookies.get('user_name');
       if (token) { 
           
               next({
                   path: '/login',
                   query: {
                       redirect: to.fullPath
                   } 
               })
       }
   }*/
  next();
})
new Vue({
  router,
  render: h => h(App)
}).$mount("#app");